// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class ReBinAnnGenset : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<ReBinAnnGenset, MasterDbContextLocator>
    {

        public int ReBinId { get; set; }
        public int AnnounceId { get; set; }
        public string AnnounceCode { get; set; }
        public string RegisteredGenset { get; set; }
        public string RegisteredDtuId { get; set; }
        public int? BinGensetNum { get; set; }
    
        public void Configure(EntityTypeBuilder<ReBinAnnGenset> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.ReBinId);

                entityBuilder.Property(e => e.AnnounceCode)
                    .IsRequired()
                    .HasMaxLength(50);

                entityBuilder.Property(e => e.RegisteredDtuId).HasMaxLength(50);

                entityBuilder.Property(e => e.RegisteredGenset).HasMaxLength(50);
        }

    }
}

